package com.internetCafes.spms.web.customer.entity.customer;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 客户流转统计表
 * </p>
 *
 * @author Zj
 * @since 2021-11-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("x_customer_flow_count")
public class CustomerFlowCount implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 创建数量
     */
    private Integer createAmount;

    /**
     * 跟进人变更数量
     */
    private Integer transferAmount;

    /**
     * 删除数量
     */
    private Integer deleteAmount;

    /**
     * 转意向数量
     */
    private Integer toInterestAmount;

    /**
     * 转成交数量
     */
    private Integer toDealAmount;

    /**
     * 转移数量
     */
    private Integer removeAmount;

    /**
     * 创建者id 引用t_user_info表
     */
    private Long createBy;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新人id 引用t_user_info表
     */
    private Long updateBy;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 企业id 引用t_tenant_info表
     */
    private Long tenantId;

    public CustomerFlowCount() {
    }

    public CustomerFlowCount(Long createBy, Date createTime, Long tenantId) {
        this.createBy = createBy;
        this.createTime = createTime;
        this.tenantId = tenantId;
        this.setCreateAmount(0);
        this.setTransferAmount(0);
        this.setDeleteAmount(0);
        this.setToInterestAmount(0);
        this.setToDealAmount(0);
        this.setRemoveAmount(0);
    }
}
